package com.eeepay.eeepay_v2.adapter;

import android.content.Context;

import com.eeepay.v2_library.R;
import com.eeepay.v2_library.adapter.ABBaseAdapter;
import com.eeepay.v2_library.adapter.ABViewHolder;

import java.util.Map;

/**
 * Created by zw on 2016/3/16 0016.
 */
public class WeekListAdapter extends ABBaseAdapter<Map<String, String>>{

    public WeekListAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.view_horizontal_itemview;
    }

    @Override
    public void convert(ABViewHolder holder, Map<String, String> model) {
        holder.setText(R.id.tv_hiv_leftText, model.get("date"));
        holder.setText(R.id.tv_hiv_rightText, model.get("money"));
    }
}
